﻿///<reference path="~/Scripts/jquery-1.8.2.min.js" />
var accountService = function () {
    var serviceLocation = '/Account/',
    logon = function (useName, password, callback) {
        $.getJSON(serviceLocation + "AjaxLogon",
            { UserName: useName, Password: password },
            function (data) {
                callback(data);
            });
    },
    logout = function (callback) {
        $.getJSON(serviceLocation + "AjaxLogout",
            function (data) {
                callback(data);
            });
    };

    return {
        Logon: logon,
        Logout: logout
    };
} ();